#include <REGX52.H>
#include "ADchange.h"
#include "LCD1602.h"

int main()
{
	unsigned int ad1=0;
	unsigned int ntc1=0;
	unsigned int gr1=0;
	LCD_Init();
	LCD_ShowString(1,1,"AD1");
	LCD_ShowString(1,6,"NTC1");
	LCD_ShowString(1,12,"GR1");
	while(1)
	{
		ad1=Read_data(command_AD1_12);
		LCD_ShowNum(2,1,ad1,4);

		ntc1=Read_data(command_NTC1_8);
		LCD_ShowNum(2,6,ntc1,4);

		gr1=Read_data(command_GR1_8);
		LCD_ShowNum(2,12,gr1,4);
		
		LCD_Delay1ms(1000);
	}
	return 0;
}